package com.luchao.springcloudproviderdept.service.impl;

import com.luchao.springcloudapi.pojo.Dept;
import com.luchao.springcloudproviderdept.mapper.DeptMapper;
import com.luchao.springcloudproviderdept.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    public boolean addDept(Dept dept) {
        return deptMapper.addDept(dept);
    }

    public Dept getById(long id) {
        return deptMapper.getById(id);
    }

    public List<Dept> getlist() {
        return deptMapper.getlist();
    }
}
